﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UFSoft.UBF.Eventing;
using UFSoft.UBF.Util.Context;

namespace ufida.u9.cust.dz.beplugin.MiscShipment
{
    using ufida.u9.cust.dz.beplugin.JkySchema;
    using UFIDA.U9.InvDoc.Enums;
    using UFIDA.U9.InvDoc.MiscShip;

    class AfterUpdated : IEventSubscriber
    {
        public void Notify(params object[] args)
        {
            if (PlatformContext.Current.EnterpriseID.Equals("10"))
            {
                MiscShipment entity = null;
                if (BaseCommon.TryGetEntity(args, ref entity))
                {
                    INVDocStatus Current = entity.Status;
                    INVDocStatus Original = entity.OriginalData.Status;

                    if (Current == INVDocStatus.Approved && Original == INVDocStatus.Approving)
                    {
                        

                    }
                }
            }


        }
    }
}
